import { PickType } from '@nestjs/mapped-types';
import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsNotEmpty } from 'class-validator';
import { RegisterUserDto } from './registerUser.dto';

export class UpdateUserDto extends PickType(RegisterUserDto, [
  'captcha',
  'email',
]) {
  @ApiProperty()
  headPic: string;

  @ApiProperty()
  nickName: string;

  // @IsNotEmpty({ message: '邮箱不能为空' })
  // @IsEmail({}, { message: '邮箱格式不正确' })
  // @ApiProperty()
  // email: string;

  // @IsNotEmpty({ message: '验证码不能为空' })
  // @IsNotEmpty({ message: '验证码不能为空' })
  // @ApiProperty()
  // captcha: string;
}
